// combineReducers:合并reducer,applyMiddleware:接收中间件
import {createStore,combineReducers,applyMiddleware} from "redux"
// thunk:异步中间件
import thunk from "redux-thunk"
// composeWithDevTools：工具
import {composeWithDevTools} from "redux-devtools-extension"
import register from "./modules/register"
import login from "./modules/login"
import home from "./modules/home"
import cate from "./modules/cate"
import shop from "./modules/shop"
import mine from "./modules/mine"
// reducer 修改数据
let reducer=combineReducers({
    register,
    login,
    home,
    cate,
    shop,
    mine,
})

let store=createStore(reducer,composeWithDevTools(applyMiddleware(thunk)))
export default store